//**********流程执行历史***********/;
import request from '@/utils/request.js';

/**
 * 存在抄送的流程
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * ********
 * @returns
 * ********
 */
export function getHmprocesshistoryProcessCc(config={}){
  return request({
    method: 'get',
    url: `/api/hm-process-history/process/cc`,
    ...config,
  }) 
}

/**
 * 通知已读
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  id:'', // 	类型:string 非必填
 * @returns
 * ********
 */
export function putHmprocesshistoryReadCc(data={}, config={}){
  return request({
    method: 'put',
    data,
    url: `/api/hm-process-history/read/cc`,
    ...config,
  }) 
}

/**
 * 我的知会任务
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * params 参数 
 * processId:'', //processId 非必填
 * read:'', //read 必填
 * pageNo:'', //页码 非必填
 * pageSize:'', //每页数据条数 非必填
 * @returns
 * ********
 */
export function getHmprocesshistoryTaskCc(params={}, config={}){
  return request({
    method: 'get',
    params,
    url: `/api/hm-process-history/task/cc`,
    ...config,
  }) 
}

/**
 * 已处理的任务
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * params 参数 
 * processId:'', //processId 非必填
 * searchKey:'', //搜索关键字 非必填
 * pageNo:'', //页码 非必填
 * pageSize:'', //每页数据条数 非必填
 * @returns
 * ********
 */
export function getHmprocesshistoryTaskDown(params={}, config={}){
  return request({
    method: 'get',
    params,
    url: `/api/hm-process-history/task/down`,
    ...config,
  }) 
}

/**
 * 已处理任务关联流程
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * ********
 * @returns
 * ********
 */
export function getHmprocesshistoryTaskDownProcess(config={}){
  return request({
    method: 'get',
    url: `/api/hm-process-history/task/down/process`,
    ...config,
  }) 
}